<%- include header %>

最新留言：
<% posts.forEach(function (post, index) { %>
  <!-- <p><h2><a href="#"><%= post.title %></a></h2></p> -->
  <p class="info">
    用户：<a href="#"><%= post.name %></a> | 
    日期：<%= post.time.minute %>
  </p>
  <p><%- post.post %></p>
    <div id="app">
      <template>
		    <el-button type="text" @click="dialogTableVisible = true">n 条评论</el-button>
		<!-- Table -->
		    <el-dialog title="查看评论" :visible.sync="dialogTableVisible">
			   <div style="margin: 20px 0;"></div>
			   <el-input type="textarea" :autosize="{ minRows: 2, maxRows: 4}" placeholder="请输入内容" v-model="textarea3">
			   </el-input>
		    </el-dialog>
    </template>
  </div>

<% }) %>
<!-- Table -->
<script type="text/javascript">
var Main = {
    data() {
      return {
      	textarea3: '',
      	textarea2: '',
        dialogTableVisible: false,
        dialogFormVisible: false,
        formLabelWidth: '120px'
      };
    }
  };
var Ctor = Vue.extend(Main)
new Ctor().$mount('#app')
</script>

<%- include footer %>